package top.alanshelby.beans;

public class Student {

    private String sName;

    private int age;

    private Teacher teacher;

    public Student() {
        this.sName = "Mike";
        this.age = 20;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    /*@Override
    public String toString() {
        return "Student{" +
                "sName='" + sName + '\'' +
                ", age=" + age +
                ", teacher=" + teacher +
                '}';
    }*/
}
